package com.wxy.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotEmpty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 47868
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    @NotEmpty(message = "姓名不能为空")
    private String username;
    @Email(message = "该邮箱不符合邮箱命名规则")
    private String email;
}
